//
//  BRWalletHeadView.m
//  Chargebull
//
//  Created by 甘卫国 on 2024/3/4.
//

#import "BRWalletHeadView.h"

@implementation BRWalletHeadView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self setUI];
    }
    return self;
}

#pragma mark - UI --
- (void)setUI {
    
//    UIImageView *bgImg = [[UIImageView alloc] initWithImage:UIImageMake(@"wallet_bg")];
//    [self addSubview:bgImg];
    
    UIImageView *cardImg = [[UIImageView alloc] initWithImage:UIImageMake(@"wallet_cardsImg")];
    [self addSubview:cardImg];
    
//    [bgImg mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.offset(0);
//        make.left.right.offset(0);
//        
//    }];
    
    [cardImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(302);
        make.height.mas_equalTo(248);
        make.top.offset(8);
        make.centerX.offset(0);
        make.bottom.offset(-34);
    }];
}

@end
